Integrand size = 13, antiderivative size = 130 \[ \int \cos (a+b x) \cot (c+d x) \, dx=-\frac {e^{-i (a+b x)}}{2 b}+\frac {e^{i (a+b x)}}{2 b}+\frac {e^{-i (a+b x)} \operatorname {Hypergeometric2F1}\left (1,-\frac {b}{2 d},1-\frac {b}{2 d},e^{2 i (c+d x)}\right )}{b}-\frac {e^{i (a+b x)} \operatorname {Hypergeometric2F1}\left (1,\frac {b}{2 d},1+\frac {b}{2 d},e^{2 i (c+d x)}\right )}{b} \]
[Out]
Time = 0.16 (sec) , antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {4654, 2225, 2283} \[ \int \cos (a+b x) \cot (c+d x) \, dx=\frac {e^{-i (a+b x)} \operatorname {Hypergeometric2F1}\left (1,-\frac {b}{2 d},1-\frac {b}{2 d},e^{2 i (c+d x)}\right )}{b}-\frac {e^{i (a+b x)} \operatorname {Hypergeometric2F1}\left (1,\frac {b}{2 d},\frac {b}{2 d}+1,e^{2 i (c+d x)}\right )}{b}-\frac {e^{-i (a+b x)}}{2 b}+\frac {e^{i (a+b x)}}{2 b} \]
[In]
[Out]
Rule 2225
Rule 2283
Rule 4654
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {1}{2} i e^{-i (a+b x)}+\frac {1}{2} i e^{i (a+b x)}-\frac {i e^{-i (a+b x)}}{1-e^{2 i (c+d x)}}-\frac {i e^{i (a+b x)}}{1-e^{2 i (c+d x)}}\right ) \, dx \\ & = \frac {1}{2} i \int e^{-i (a+b x)} \, dx+\frac {1}{2} i \int e^{i (a+b x)} \, dx-i \int \frac {e^{-i (a+b x)}}{1-e^{2 i (c+d x)}} \, dx-i \int \frac {e^{i (a+b x)}}{1-e^{2 i (c+d x)}} \, dx \\ & = -\frac {e^{-i (a+b x)}}{2 b}+\frac {e^{i (a+b x)}}{2 b}+\frac {e^{-i (a+b x)} \operatorname {Hypergeometric2F1}\left (1,-\frac {b}{2 d},1-\frac {b}{2 d},e^{2 i (c+d x)}\right )}{b}-\frac {e^{i (a+b x)} \operatorname {Hypergeometric2F1}\left (1,\frac {b}{2 d},1+\frac {b}{2 d},e^{2 i (c+d x)}\right )}{b} \\ \end{align*}
Time = 1.67 (sec) , antiderivative size = 108, normalized size of antiderivative = 0.83 \[ \int \cos (a+b x) \cot (c+d x) \, dx=\frac {e^{-i (a+b x)} \left (-1+e^{2 i (a+b x)}+2 \operatorname {Hypergeometric2F1}\left (1,-\frac {b}{2 d},1-\frac {b}{2 d},e^{2 i (c+d x)}\right )-2 e^{2 i (a+b x)} \operatorname {Hypergeometric2F1}\left (1,\frac {b}{2 d},1+\frac {b}{2 d},e^{2 i (c+d x)}\right )\right )}{2 b} \]
[In]
[Out]
\[\int \cos \left (x b +a \right ) \cot \left (d x +c \right )d x\]
[In]
[Out]
\[ \int \cos (a+b x) \cot (c+d x) \, dx=\int { \cos \left (b x + a\right ) \cot \left (d x + c\right ) \,d x } \]
[In]
[Out]
\[ \int \cos (a+b x) \cot (c+d x) \, dx=\int \cos {\left (a + b x \right )} \cot {\left (c + d x \right )}\, dx \]
[In]
[Out]
\[ \int \cos (a+b x) \cot (c+d x) \, dx=\int { \cos \left (b x + a\right ) \cot \left (d x + c\right ) \,d x } \]
[In]
[Out]
\[ \int \cos (a+b x) \cot (c+d x) \, dx=\int { \cos \left (b x + a\right ) \cot \left (d x + c\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int \cos (a+b x) \cot (c+d x) \, dx=\int \cos \left (a+b\,x\right )\,\mathrm {cot}\left (c+d\,x\right ) \,d x \]
[In]
[Out]